﻿#r @"..\Microsoft.SharePoint.Client (spo)\Microsoft.SharePoint.Client.dll"
#r @"..\Microsoft.SharePoint.Client (spo)\Microsoft.SharePoint.Client.Runtime.dll"

#load "Client.fs"

open Client
open Microsoft.SharePoint.Client
open Microsoft.SharePoint.Client.Utilities
open Microsoft.SharePoint.Client.Application
open System.Security;

// =======================================================
// Move and copy files and folders
// =======================================================

MoveCopyUtil.CopyFolder(Client.Context, "/Documents/Test1", "/Documents/Test2")
MoveCopyUtil.MoveFolder(Client.Context, "/Documents/Test1", "/Documents/Test2")
Client.ExecuteQuery()
